<?php
require_once( realpath('..') . '/includes/admin.php' );

auth();
$dora->database();

$dora->lib('message');
$dora->helper('url');

$dora->db->query("delete from house where id in(". join_id() .")");
$dora->message->set('删除房源成功');

include('house_list.php');

function join_id() {
	if( isset($_POST['id']) ) {
		$id_list = $_POST['id'];
		return join(",", $id_list);	
	}
	else {
		return 0;
	}
}


?>